import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;

import static java.lang.Thread.sleep;

/**
 * @Author：徐志荣
 * @Date：2023/5/22 16:44
 */
//关闭浏览器
public class Test10 {
    public static void main(String[] args) throws InterruptedException {
        test02();
    }

    private static void test02() throws InterruptedException {
        //打开百度首页
        ChromeOptions options = new ChromeOptions();
        options.addArguments("--remote-allow-origins=*");
        WebDriver webDriver = new ChromeDriver(options);
        //搜索 521
        webDriver.get("http://localhost:63342/_20230512_TestCode/src/main/html/test05.html?_ijt=5np5rls93m6pugthfm0klpamq&_ij_reload=RELOAD_ON_SAVE");
        sleep(3000);
       webDriver.quit();
    }


}